package com.example.cola.client.api.dto;

import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 更新用户命令
 * 
 * @author 资深开发专家
 * @version 1.0
 */
@Data
public class UserUpdateCmd {
    
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phoneNumber;
    
    @Size(min = 2, max = 50, message = "用户名长度必须在2-50个字符之间")
    private String name;
}
